import request from '@/utils/request'

// RestFul 规范: get 请求就是做获取数据, post 请求就是做提交数据, delete 请求就是做删除数据 ...
// 全 post 规范: 所有接口全部是 post 请求
export const getArticleList = params => request.get('/admin/interview/query', { params })

export const addArticle = data => request.post('/admin/interview/create', data)

export const delArticle = id => request.delete('/admin/interview/remove', {
  // params: {}, // 查询参数
  data: { id } // 请求体参数
})

export const getArticle = id => request.get('/admin/interview/show', { params: { id } })

export const updateArticle = data => request.put('/admin/interview/update', data)
